
package info.neocron.service.PublicInterface;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * <p>Java class for Mail complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="Mail">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="Id" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="From_Char" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="To_Char" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="TimeStamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         &lt;element name="Subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="Body" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="Replied" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="New" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Mail", propOrder = {
    "id",
    "fromChar",
    "toChar",
    "timeStamp",
    "subject",
    "body",
    "replied",
    "_new"
})
@XmlSeeAlso({
    ExtendedMail.class
})
public class Mail {

    @XmlElement(name = "Id")
    protected int id;
    @XmlElement(name = "From_Char")
    protected int fromChar;
    @XmlElement(name = "To_Char")
    protected int toChar;
    @XmlElement(name = "TimeStamp", required = true)
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar timeStamp;
    @XmlElement(name = "Subject")
    protected String subject;
    @XmlElement(name = "Body")
    protected String body;
    @XmlElement(name = "Replied")
    protected int replied;
    @XmlElement(name = "New")
    protected int _new;

    /**
     * Gets the value of the id property.
     * 
     */
    public int getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     * 
     */
    public void setId(int value) {
        this.id = value;
    }

    /**
     * Gets the value of the fromChar property.
     * 
     */
    public int getFromChar() {
        return fromChar;
    }

    /**
     * Sets the value of the fromChar property.
     * 
     */
    public void setFromChar(int value) {
        this.fromChar = value;
    }

    /**
     * Gets the value of the toChar property.
     * 
     */
    public int getToChar() {
        return toChar;
    }

    /**
     * Sets the value of the toChar property.
     * 
     */
    public void setToChar(int value) {
        this.toChar = value;
    }

    /**
     * Gets the value of the timeStamp property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getTimeStamp() {
        return timeStamp;
    }

    /**
     * Sets the value of the timeStamp property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setTimeStamp(XMLGregorianCalendar value) {
        this.timeStamp = value;
    }

    /**
     * Gets the value of the subject property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getSubject() {
        return subject;
    }

    /**
     * Sets the value of the subject property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setSubject(String value) {
        this.subject = value;
    }

    /**
     * Gets the value of the body property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getBody() {
        return body;
    }

    /**
     * Sets the value of the body property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setBody(String value) {
        this.body = value;
    }

    /**
     * Gets the value of the replied property.
     * 
     */
    public int getReplied() {
        return replied;
    }

    /**
     * Sets the value of the replied property.
     * 
     */
    public void setReplied(int value) {
        this.replied = value;
    }

    /**
     * Gets the value of the new property.
     * 
     */
    public int getNew() {
        return _new;
    }

    /**
     * Sets the value of the new property.
     * 
     */
    public void setNew(int value) {
        this._new = value;
    }

}
